package com.fengweijie;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

//TIP 要<b>运行</b>代码，请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
@SpringBootApplication
@EnableScheduling
public class WebApplication {
    private static ConfigurableApplicationContext context;
    public static void main(String[] args) {
        SpringApplicationBuilder springBuilder = new SpringApplicationBuilder(WebApplication.class);
        context = springBuilder.headless(false).run(args);
        System.setProperty("java.awt.headless", "false");
    }
}